package com.shajj.movie;

import java.io.Serializable;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class IdGenerator implements Serializable {

	private static final long serialVersionUID = 1L;

	@PrimaryKey
    @Persistent
	private String key;

	@Persistent
	private Long id = 0L;

    public IdGenerator(String key, Long id) {
        super();
        this.key = key;
        this.id = id;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }



}
